<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let str = ' adf lj ';
			let regStr = str.replace(/\s*/g,"");
			console.log(regStr);
		</script>
	</body>
</html>
